package com.zjhd.sealcutting.dao;


import com.zjhd.sealcutting.domain.WorksInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WorksInfoMapper {

    int deleteByPrimaryKey(String id);

    int insert(WorksInfo record);

    WorksInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(WorksInfo record);

    int updateByPrimaryKey(WorksInfo record);

    List<WorksInfo> queryParamWorksInfoList(Map<String, Object> map);

    long queryParamWorksInfoCount(Map<String, Object> map);

    List<WorksInfo> queryByCreaterIdWorks(@Param("creatorId") Integer creatorId);

    List<WorksInfo> queryWorks();

    /**
     * TODO  根据终稿ID查询所关联初稿ID
     * @author wangchao
     * @date 2020/12/14 17:19
     * @param
     * @return
     */
    String queryByRelatedWorksId(String relatedWorksId);
}